package com.ruoyi.dgdData.domain.pad;

import com.ruoyi.common.utils.DateUtils;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * 提升机数据处理，数据目录Item
 */
public class DgdTreeDataItemDto {

    /**
     * 测试项名称
     */
    private String projectName;

    /**
     * 本测试项的数据集合
     */
    private List<ProjectTestItem> testItemList = new ArrayList<>();


    public DgdTreeDataItemDto() {
    }

    public DgdTreeDataItemDto(String projectName) {
        this.projectName = projectName;
    }

    public String getProjectName() {
        return projectName;
    }

    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }

    public List<ProjectTestItem> getTestItemList() {
        return testItemList;
    }

    public void setTestItemList(List<ProjectTestItem> testItemList) {
        this.testItemList = testItemList;
    }

    public static class ProjectTestItem {
        /**
         * 数据ID
         */
        private Long id;

        /**
         * 数据保存时间
         */
        private String saveTime;

        /**
         * 测试类型
         */
        private String cshlx;

        public ProjectTestItem() {
        }

        public ProjectTestItem(Long id, Date saveTime, String cshlx) {
            this.id = id;
            this.saveTime = DateUtils.parseDateToStr(DateUtils.YYYY_MM_DD_HH_MM_SS, saveTime);
            this.cshlx = cshlx;
        }

        public Long getId() {
            return id;
        }

        public void setId(Long id) {
            this.id = id;
        }

        public String getSaveTime() {
            return saveTime;
        }

        public void setSaveTime(String saveTime) {
            this.saveTime = saveTime;
        }

        public String getCshlx() {
            return cshlx;
        }

        public void setCshlx(String cshlx) {
            this.cshlx = cshlx;
        }
    }

}
